package com.ruoyi.module.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷对象 exam_paper
 * 
 * @author ruoyi
 */
public class ExamPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 试卷ID */
    private Long id;

    /** 版本ID */
    @Excel(name = "版本ID")
    private Long versionId;

    /** 版本名称 */
    @Excel(name = "版本名称")
    private String versionName;

    /** 学段 */
    @Excel(name = "学段")
    private String period;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 语言分类ID */
    @Excel(name = "语言分类ID")
    private String languageCategory;

    /** 试题总数 */
    @Excel(name = "试题总数")
    private Integer totalQuestions;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 试题列表（关联查询，不存储） */
    private transient List<ExamQuestion> questionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setVersionId(Long versionId) 
    {
        this.versionId = versionId;
    }

    public Long getVersionId() 
    {
        return versionId;
    }

    public void setVersionName(String versionName) 
    {
        this.versionName = versionName;
    }

    public String getVersionName() 
    {
        return versionName;
    }

    public void setPeriod(String period) 
    {
        this.period = period;
    }

    public String getPeriod() 
    {
        return period;
    }

    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }

    public void setLanguageCategory(String languageCategory) 
    {
        this.languageCategory = languageCategory;
    }

    public String getLanguageCategory() 
    {
        return languageCategory;
    }

    public void setTotalQuestions(Integer totalQuestions) 
    {
        this.totalQuestions = totalQuestions;
    }

    public Integer getTotalQuestions() 
    {
        return totalQuestions;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<ExamQuestion> getQuestionList() 
    {
        return questionList;
    }

    public void setQuestionList(List<ExamQuestion> questionList) 
    {
        this.questionList = questionList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionId", getVersionId())
            .append("versionName", getVersionName())
            .append("period", getPeriod())
            .append("language", getLanguage())
            .append("languageCategory", getLanguageCategory())
            .append("totalQuestions", getTotalQuestions())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}

